package com.example.day07.ex03;
class Student {
    private String name;
    private int age;

    public void setAge(int a) {
        age = a;
    }

    public int getAge() {
        return age;
    }

    public void show() {
        System.out.println("姓名：" + name + " 年龄：" + age);
    }
    public void setName(String n) {
        name = n;
    }
    public String getName() {
        return name;
    }
}
